package src;

public class RowShift {
    public static void row_shift(byte[] matrix){
        byte temp = matrix[1];
        matrix[1] = matrix[5];
        matrix[5] = matrix[9];
        matrix[9] = matrix[13];
        matrix[13] = temp;

        temp = matrix[2];
        matrix[2] = matrix[10];
        matrix[10] = temp;
        temp = matrix[6];
        matrix[6] = matrix[14];
        matrix[14] = temp;

        temp = matrix[15];
        matrix[15] = matrix[11];
        matrix[11] = matrix[7];
        matrix[7] = matrix[3];
        matrix[3] = temp;
    }
}